//
//  TotalCell.m
//  SweetComics
//
//  Created by LeeZhe on 15/1/29.
//  Copyright (c) 2015年 LeeZhe. All rights reserved.
//

#import "TotalCell.h"

@implementation TotalCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.total = [UIButton buttonWithType:UIButtonTypeSystem];
        [self addSubview:_total];
        _total.tintColor = [UIColor colorWithRed:85.10 green:89.85 blue:89.85 alpha:0.5];
//        _total.backgroundColor = [UIColor blueColor];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _total.frame = CGRectMake(self.contentView.frame.size.width - 80, 5,50,20);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setTotal
{
    [_total setTitle:@"全部" forState: UIControlStateNormal];
}
- (void)dealloc
{
    [_total release];
    [super dealloc];
}
@end
